<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>数学运算</title>
</head>
<body>
<div th:text="${sex eq 1?'男':'女'}"></div>
</body>
</html>